﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Compiler
{
    public class FollowSets
    {
        private Dictionary<Nonterminal, HashSet<Symbol>> followSets;

        internal FollowSets(Dictionary<Nonterminal, HashSet<Symbol>> followSets)
        {
            this.followSets = followSets;
        }

        public ISet<Symbol> this[Nonterminal symbol]
        {
            get
            {
                return followSets[symbol];
            }
        }
    }
}
